package com.hc.mapper;

import com.hc.domain.ProjCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: hecai
 * @date: 2021/11/9 11:17
 * @description:
 */
@Mapper
public interface ProjCategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ProjCategory record);

    int insertSelective(ProjCategory record);

    ProjCategory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ProjCategory record);

    List<Integer> selectCidByPrimaryKey(Long id);

    int updateByPrimaryKey(ProjCategory record);

    /**
     * 查寻指定类别编号下面的Proj的编号
     * @param categoryId
     * @return
     */
    List<Long> selectProjIdByCategoryId(@Param("categoryId") Long categoryId);

    List<Long> selectIdsByProjId(@Param("pid") Long pid);
}